package com.wanmait.wisdom.manage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.wanmait.wisdom.entity.Resident;

import java.util.Date;

public interface ManageResidentService extends IService<Resident> {

    void addResident(Resident resident);

    Integer getCountByParkingId(Integer parkingId);

    PageInfo<Resident> findAllResident(Resident searchResident, Integer pageNum, Date startTime, Date endTime,Integer pageSize);

    Resident findResidentById(Integer id);

    Integer checkPersonSize(Integer id);

    void updateResident(Resident resident, Integer houseId);

    void deleteResident(Integer id, Integer houseId);
    Long getResidentCount();

}
